<h2>Data Base</h2>
<form id="form_step_2" action="?step=<?php echo $show + 1;?>"  method="post">
  <div>
    <div class="td1">
      <label for="sql_host">Mysql host :</label>
    </div>
    <div class="td2">
      <input type="text" name="sql_host" value="<?php echo isset($_SESSION['form_data']['sql_host']) ? $_SESSION['form_data']['sql_host'] : 'localhost' ;?>"/>
    </div>
  </div>
  <div>
    <div class="td1">
      <label for="sql_username">Mysql Username :</label>
    </div>
    <div class="td2">
      <input type="text" name="sql_username" value="<?php echo isset($_SESSION['form_data']['sql_username']) ? $_SESSION['form_data']['sql_username'] : 'root' ;?>"/>
    </div>
  </div>
  <div>
    <div class="td1">
      <label for="sql_password">Mysql Password :</label>
    </div>
    <div class="td2">
      <input name="sql_password" type="password" value="<?php echo isset($_SESSION['form_data']['sql_password']) ? $_SESSION['form_data']['sql_password'] : '' ;?>"/>
    </div>
  </div>
  <div>
    <div class="td1">
      <label for="sql_database">Mysql Database :</label>
    </div>
    <div class="td2">
      <input type="text" name="sql_database" value="<?php echo isset($_SESSION['form_data']['sql_database']) ? $_SESSION['form_data']['sql_database'] : '' ;?>" />
    </div>
  </div>
  <div>
    <div class="td1">
      <label for="sql_prefix">Mysql prefix :</label>
    </div>
    <div class="td2">
      <input type="text" name="sql_prefix" value="<?php echo isset($_SESSION['form_data']['sql_prefix']) ? $_SESSION['form_data']['sql_prefix'] : 'joc_cms_' ;?>"/>
    </div>
  </div>
  <div>
    <div class="td1">
      <label for="sql_port">Mysql Port :</label>
    </div>
    <div class="td2">
      <input type="text" name="sql_port" value="<?php echo isset($_SESSION['form_data']['sql_port']) ? $_SESSION['form_data']['sql_port'] : '' ;?>" />
    </div>
  </div>
  <button onclick="test_step_2(); return false ;">Test Connection</button>
  <button id="submit" type="submit" disabled="disabled">Next</button>
</form>
